﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Dala.Samples.BusinessLogicLayer;

namespace Dala.Samples.list_view
{
    public partial class list_view : System.Web.UI.Page
    {
        private void BindData()
        {
            lvProduct.DataSource = new ProductBLL().GetAllProducts();
            lvProduct.DataBind();
        }


        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                this.BindData();

            }
        }


        protected void lvProduct_ItemEditing(object sender, ListViewEditEventArgs e)
        {

        }

        protected void lvProduct_ItemCanceling(object sender, ListViewCancelEventArgs e)
        {

        }

        protected void lvProduct_ItemDeleting(object sender, ListViewDeleteEventArgs e)
        {

        }

        protected void lvProduct_ItemInserting(object sender, ListViewInsertEventArgs e)
        {

        }

        protected void lvProduct_ItemUpdating(object sender, ListViewUpdateEventArgs e)
        {

        }
    }
}